[INFO] cloning repository https://github.com/sutetako/rust_learning
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sutetako/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 69ae47d04f313d24b1b40ef9c7ea7c4f9920a3d0
[INFO] testing sutetako/rust_learning against master#1f7f8ea0721a3b1eb73e6c6d25cccb371434b320 for pr-154065-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsutetako%2Frust_learning" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/sutetako/rust_learning
[INFO] finished tweaking git repo https://github.com/sutetako/rust_learning
[INFO] tweaked toml for git repo https://github.com/sutetako/rust_learning written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/sutetako/rust_learning on toolchain 1f7f8ea0721a3b1eb73e6c6d25cccb371434b320
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/sutetako/rust_learning already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded serde v1.0.99
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b04663a47c70b2457a51987e6fea3a5505ac3f3b13766d6123d18181cf25f893
[INFO] running `Command { std: "docker" "start" "-a" "b04663a47c70b2457a51987e6fea3a5505ac3f3b13766d6123d18181cf25f893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b04663a47c70b2457a51987e6fea3a5505ac3f3b13766d6123d18181cf25f893", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b04663a47c70b2457a51987e6fea3a5505ac3f3b13766d6123d18181cf25f893", kill_on_drop: false }`
[INFO] [stdout] b04663a47c70b2457a51987e6fea3a5505ac3f3b13766d6123d18181cf25f893
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b575b1d829b1fa2b8e3b92a63e10ead3d9a5f7ca3be6ab56426bd580eeaad5a6
[INFO] running `Command { std: "docker" "start" "-a" "b575b1d829b1fa2b8e3b92a63e10ead3d9a5f7ca3be6ab56426bd580eeaad5a6", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde v1.0.99
[INFO] [stderr]    Compiling serde_json v1.0.40
[INFO] [stderr]    Compiling rust_learning v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.21s
[INFO] running `Command { std: "docker" "inspect" "b575b1d829b1fa2b8e3b92a63e10ead3d9a5f7ca3be6ab56426bd580eeaad5a6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b575b1d829b1fa2b8e3b92a63e10ead3d9a5f7ca3be6ab56426bd580eeaad5a6", kill_on_drop: false }`
[INFO] [stdout] b575b1d829b1fa2b8e3b92a63e10ead3d9a5f7ca3be6ab56426bd580eeaad5a6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1f7f8ea0721a3b1eb73e6c6d25cccb371434b320" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6c26e6fb8750555f147fceaf093a0d93fef24d89d254cee7c9ac8548c4ef016b
[INFO] running `Command { std: "docker" "start" "-a" "6c26e6fb8750555f147fceaf093a0d93fef24d89d254cee7c9ac8548c4ef016b", kill_on_drop: false }`
[INFO] [stderr]    Compiling rust_learning v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:245:6
[INFO] [stdout]     |
[INFO] [stdout] 245 |     };
[INFO] [stdout]     |      ^ help: remove this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]    --> src/main.rs:375:6
[INFO] [stdout]     |
[INFO] [stdout] 375 |     };
[INFO] [stdout]     |      ^ help: remove this semicolon
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]     --> src/main.rs:1814:32
[INFO] [stdout]      |
[INFO] [stdout] 1814 |         fn say_hello(out: &mut Write) -> std::io::Result<()> {
[INFO] [stdout]      |                                ^^^^^
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]      = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]      = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]      |
[INFO] [stdout] 1814 |         fn say_hello(out: &mut dyn Write) -> std::io::Result<()> {
[INFO] [stdout]      |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right_matches`: superseded by `trim_end_matches`
[INFO] [stdout]     --> src/main.rs:1469:27
[INFO] [stdout]      |
[INFO] [stdout] 1469 |             self.plural().trim_right_matches('s')
[INFO] [stdout]      |                           ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]      |
[INFO] [stdout] 1469 -             self.plural().trim_right_matches('s')
[INFO] [stdout] 1469 +             self.plural().trim_end_matches('s')
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]     --> src/main.rs:1840:26
[INFO] [stdout]      |
[INFO] [stdout] 1840 |         let writer: &mut Write = &mut buf; // ok
[INFO] [stdout]      |                          ^^^^^
[INFO] [stdout]      |
[INFO] [stdout]      = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]      = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]      |
[INFO] [stdout] 1840 |         let writer: &mut dyn Write = &mut buf; // ok
[INFO] [stdout]      |                          +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0109]: type arguments are not allowed on local variable
[INFO] [stdout]     --> src/main.rs:1854:15
[INFO] [stdout]      |
[INFO] [stdout] 1854 |         buf::<Vec>.write_all(b"hello").expect("error");
[INFO] [stdout]      |         ---   ^^^ type argument not allowed
[INFO] [stdout]      |         |
[INFO] [stdout]      |         not allowed on local variable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]     --> src/main.rs:1366:17
[INFO] [stdout]      |
[INFO] [stdout] 1366 |             let mut file = self.log_file.borrow_mut();
[INFO] [stdout]      |                 ----^^^^
[INFO] [stdout]      |                 |
[INFO] [stdout]      |                 help: remove this `mut`
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]     --> src/main.rs:1365:27
[INFO] [stdout]      |
[INFO] [stdout] 1365 |         pub fn log(&self, message: &str) {
[INFO] [stdout]      |                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]     --> src/main.rs:1366:17
[INFO] [stdout]      |
[INFO] [stdout] 1366 |             let mut file = self.log_file.borrow_mut();
[INFO] [stdout]      |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `three_hours_from_now`
[INFO] [stdout]     --> src/main.rs:1484:9
[INFO] [stdout]      |
[INFO] [stdout] 1484 |     let three_hours_from_now = RoughTime::InTheFuture(TimeUnit::Hours, 3);
[INFO] [stdout]      |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_three_hours_from_now`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit_sphere`
[INFO] [stdout]     --> src/main.rs:1492:9
[INFO] [stdout]      |
[INFO] [stdout] 1492 |     let unit_sphere = Shape::Sphere {
[INFO] [stdout]      |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unit_sphere`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tree`
[INFO] [stdout]     --> src/main.rs:1551:9
[INFO] [stdout]      |
[INFO] [stdout] 1551 |     let tree = BinaryTree::NonEmpty(Box::new(TreeNode {
[INFO] [stdout]      |         ^^^^ help: if this is intentional, prefix it with an underscore: `_tree`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `html`
[INFO] [stdout]     --> src/main.rs:1953:38
[INFO] [stdout]      |
[INFO] [stdout] 1953 |             fn write_html(&mut self, html: &HtmlDocument) -> io::Result<()> {
[INFO] [stdout]      |                                      ^^^^ help: if this is intentional, prefix it with an underscore: `_html`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0109`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_learning` (bin "rust_learning" test) due to 1 previous error; 12 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6c26e6fb8750555f147fceaf093a0d93fef24d89d254cee7c9ac8548c4ef016b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c26e6fb8750555f147fceaf093a0d93fef24d89d254cee7c9ac8548c4ef016b", kill_on_drop: false }`
[INFO] [stdout] 6c26e6fb8750555f147fceaf093a0d93fef24d89d254cee7c9ac8548c4ef016b
